/* YUI 3.4.1 (build 4118) Copyright 2011 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("querystring-stringify-simple",function(c){var b=c.namespace("QueryString"),a=encodeURIComponent;b.stringify=function(j,k){var d=[],h=k&&k.arrayKey?true:false,g,f,e;for(g in j){if(j.hasOwnProperty(g)){if(c.Lang.isArray(j[g])){for(f=0,e=j[g].length;f=200&&k<300||k===304||k===1223){this.success(n,l);}else{this.failure(n,l);}},_rS:function(l,k){var m=this;if(l.c.readyState===4){if(k.timeout){m._clearTimeout(l.id);}f.setTimeout(function(){m.complete(l,k);m._result(l,k);},0);}},_abort:function(l,k){if(l&&l.c){l.e=k;l.c.abort();}},send:function(m,n,l){var o,k,r,s,w,q,v=this,x=m,p={};n=n?a.Object(n):{};o=v._create(n,l);k=n.method?n.method.toUpperCase():"GET";w=n.sync;q=n.data;if(j(q)){q=a.QueryString.stringify(q);}if(n.form){if(n.form.upload){return v.upload(o,m,n);}else{q=v._serialize(n.form,q);}}if(q){switch(k){case"GET":case"HEAD":case"DELETE":x=v._concat(x,q);q="";break;case"POST":case"PUT":n.headers=a.merge({"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},n.headers);break;}}if(o.t){return v.xdr(x,o,n);}if(!w){o.c.onreadystatechange=function(){v._rS(o,n);};}try{o.c.open(k,x,!w,n.username||null,n.password||null);v._setHeaders(o.c,n.headers||{});v.start(o,n);if(n.xdr&&n.xdr.credentials){if(!a.UA.ie){o.c.withCredentials=true;}}o.c.send(q);if(w){for(r=0,s=b.length;r